Question : error Unable to resolve module ./src/aws-exports from /home/expo/workingdir/build/App.tsx: [stderr] None of these files exist: [stderr] * src/aws-exports(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.andro
Answered by : rokas
// What I did was to manually create the base64 file and save this in
// Secrets. Then, add a pre-build script so that what is stored in Secrets
// is decoded and saved as aws-exports.js
1. $base64 aws-exports.js -> Copy the output
2. In Expo.dev, add AWS_EXPORTS to Secrets and paste the value from the output
3. Add "eas-build-pre-install": "echo $AWS_EXPORTS | base64 --decode > ./src/aws-exports.js" to package.json scripts.
// I was under the impression that this would basically decode what is
// already in the Secrets and save it as aws-exports.js for building.
// I will experiment on this later and try to purposely use dev environment,then build.
Source : | Last Update : Tue, 01 Nov 22